home *** CD-ROM | disk | FTP | other *** search
- In a message dated Mon 5 Dec 94 12:00, marty@cs.hope.edu (Ben Marty)
- wrote:
-
- > For example, I want to change the strength of a lightsource over time
- > fractally between a minimum and a maximum point. Also, I need to be able
- > to create an array (x,y) of numbers that will act as terrain. I think
- > someone mentioned this is called "gridding"? Anyway, if anyone can
- provide
- > solutions or point me in the right direction (apart from telling me to
- read
- > a book on fractals) I'd appreciate it!
-
- BM> You've tried to be specific, but I still don't understand. Perhaps
- BM> if
- BM> you mention what kind of a program you're trying to write. Is it
- BM> some kind
- BM> of landscape rendering program? And tell us how, exactly, this
- BM> particular
- BM> method is necessary.
-
- OK, let me try again. I want to use some kind of fractal routine to
- generate two sets of code:
-
- The first will fractally change a number between 0 and 255 (or between a
- minimum and maximum value). The fractal value must change smoothly over
- time. This code is for an addition to Imagine, a 3D rendering program. I
- have programmed a waveform envelope generator/editor to control the
- strength of a lightsource (hece the 0 - 255 value range). I want to be
- able to let the user press a button and every value following the first one
- (that's the one the user initially sets) has some kind of fractal algorythm
- applied to it.
-
- The landscape generator is for a later project. I basically need to create
- a grid of values where, lets say, 0 represents flat terrain, 1 represents
- low hills, 2 = medium hills, 3=high hills, -1 represents marshes, etc.
- What I need here is to fill an array of x by y with a value of 0, then
- apply some kind of fractal operator on the array to build the hills,
- valleys, lakes, etc.
-
- Hope I've been a little less vague...I'm working on very little sleep these
- last few days :^(
-
- Paul
-
- -- Via DLG Pro v1.0
-
- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
- | Paul Fine Lines Publications |
- * Thompson CGI Animations Multimedia *
- | Shinobi@ckbbs.tor.hookup.net |
- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-
-